package com.cn.pack.controller;

import com.cn.pack.feign.UserService;
import com.cn.pack.pojo.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class UserController implements UserService {

    @Override
    public User query(@RequestBody User user) {
        System.out.println("user = " + user.toString());
        Map<String, Object> map = new HashMap<>();
        map.put("学校", "清华");
        map.put("收入", 230000.00);
        user.setMap(map);
        return user;
    }
}
